import type { Meta, StoryObj } from "@storybook/react";
import React from "react";
import kxLaborJobPresentPieChart from "./index";

const meta = {
  title: "饼图/可信劳务工种比例饼图-kxLaborJobPresentPieChart",
  component: kxLaborJobPresentPieChart,
  tags: ["autodocs"],
  argTypes: {},
  decorators: [
    (Story) => (
      <div
        style={{ backgroundColor: "#031857", height: "295px", width: "451px" }}
      >
        <Story />
      </div>
    ),
  ],
} satisfies Meta<typeof kxLaborJobPresentPieChart>;

export default meta;
type Story = StoryObj<typeof meta>;

export const basic: Story = {
  args: {
    dataSource: [
      {
        amount: 446,
        name: "钢筋工",
      },
      {
        amount: 363,
        name: "木工",
      },
      {
        amount: 307,
        name: "混凝土工",
      },
      {
        amount: 335,
        name: "砌筑工",
      },
      {
        amount: 251,
        name: "抹灰工",
      },
      {
        amount: 237,
        name: "油漆工",
      },
      {
        amount: 139,
        name: "架子工",
      },
      {
        amount: 715,
        name: "其他",
      },
    ],
  },
};
